Ext.define('Seq.grid.column.Boolean', {
    extend: 'Ext.grid.column.Boolean',
    xtype: 'xbooleancolumn',

    trueText: '是',
    falseText: '否',
    undefinedText: '否',

    width: 65,
    align: 'center',
    menuDisabled: true,

    renderer(value, metaData, record, rowIndex, colIndex, store, view) {
        let column = metaData.column;
        metaData.tdStyle = (Ext.isEmpty(value) || !value) ? 'color:red' : 'color:blue';
        if (Ext.isEmpty(value)) {
            return column.undefinedText;
        } else
            return value ? column.trueText : column.falseText;
    }

});